﻿@model Transport.Areas.Administrator.Models.VerifyCostModel
@{
    ViewBag.Title = "";
}
@Html.HiddenFor(model => model.DeliverFromId)
@Html.HiddenFor(model => model.DeliverToId)
@Html.HiddenFor(model => model.CustomerId)
<div style="display: none">
    @Html.Telerik().NumericTextBoxFor(model => model.TotalCostHidden).MinValue(0).MaxValue(int.MaxValue).NumberGroupSeparator(".").DecimalDigits(2).DecimalSeparator(",")
</div>
<table width="99%">
    <tr>
        <td class="adminTitle">
            @Html.Label("Khách hàng")
        </td>
        <td class="adminData">
            @Html.TextBoxFor(model => model.CustomerCode, new { disabled = "disabled", style = "background:#ebebe4; width:50px; height:36px;" })
            @Html.TextBoxFor(model => model.CustomerName, new { disabled = "disabled", style = "background:#ebebe4; width:235px" })
        </td>
    </tr>
    <tr>
        <td width="100" class="adminTitle">
            @Html.Label("Phương thức thanh toán")
        </td>
        <td style="padding-bottom:10px">
            Nợ: @Html.RadioButtonFor(model => model.PaymentType, (int)Transport.Core.Models.Parcels.PaymentTypes.EnumPaymentTypes.Debt, Model.PaymentType == (int)Transport.Core.Models.Parcels.PaymentTypes.EnumPaymentTypes.Debt ? new { Checked = "checked" } : null)
            &nbsp;&nbsp;
            Tiền mặt: @Html.RadioButtonFor(model => model.PaymentType, (int)Transport.Core.Models.Parcels.PaymentTypes.EnumPaymentTypes.Cash, Model.PaymentType == (int)Transport.Core.Models.Parcels.PaymentTypes.EnumPaymentTypes.Cash ? new { Checked = "checked"} : null)
            &nbsp;&nbsp;
            Thu hộ: @Html.RadioButtonFor(model => model.PaymentType, (int)Transport.Core.Models.Parcels.PaymentTypes.EnumPaymentTypes.Collection, Model.PaymentType == (int)Transport.Core.Models.Parcels.PaymentTypes.EnumPaymentTypes.Collection ? new { Checked = "checked"} : null)
            @Html.ValidationMessageFor(model => model.PaymentType)
        </td>
    </tr>
    <tr>
        <td width="100" class="adminTitle">
            @Html.Label("Trọng lượng")
        </td>
        <td style="padding-bottom:10px">
            @(Html.Telerik().IntegerTextBoxFor(model => model.TotalWeight).ClientEvents(events => events.OnChange("ChangeTotalWeight")).MinValue(0).MaxValue(int.MaxValue).NumberGroupSeparator("."))
            @Html.ValidationMessageFor(model => model.TotalWeight)
        </td>
    </tr>
    <tr>
        <td width="100" class="adminTitle">
        </td>
        <td>
            @Html.CheckBoxFor(model => model.IsHandInput, new { id = "chkHandInput"}) Nhập tay
        </td>
    </tr>
    <tr>
        <td width="100" class="adminTitle">
            @Html.Label("Tổng tiền")
        </td>
        <td style="padding-bottom:10px" id="tdTotalCost">
            @Html.Telerik().NumericTextBoxFor(model => model.TotalCost).Name("TotalCost").ClientEvents(events => events.OnChange("ChangeTotalCost")).MinValue(0).MaxValue(int.MaxValue).NumberGroupSeparator(".").DecimalDigits(2).DecimalSeparator(",")
            @Html.ValidationMessageFor(model => model.TotalCost)
        </td>
    </tr>
</table>
